package com.aspose.cells;

class ztf {
   private Workbook a;
   private zok b;

   ztf(zok var1) {
      this.a = var1.a;
      this.b = var1;
   }

   void a(zcfx var1) throws Exception {
      var1.b(true);
      var1.b("Properties");
      var1.a("xmlns", (String)null, "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties");
      var1.a("xmlns", "vt", (String)null, "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes");
      BuiltInDocumentPropertyCollection var2 = this.a.getWorksheets().getBuiltInDocumentProperties();
      var1.b("Application", var2.getNameOfApplication());
      String var3 = "14.0300";
      if (var2.contains("Version")) {
         DocumentProperty var4 = var2.get("Version");
         String var5 = com.aspose.cells.b.a.zr.a(var4);
         int var6 = var5.indexOf(".");
         if (var6 != -1) {
            int var7 = com.aspose.cells.b.a.zo.a(var5.substring(0, 0 + var6));
            if (var7 >= 12) {
               var3 = var5;
            }
         }
      }

      if (var3 == null || "".equals(var3)) {
         var3 = "14.0300";
      }

      var1.b("AppVersion", var3);
      var1.b("DocSecurity", zase.y(var2.a()));
      var1.b("Template", var2.getTemplate());
      var1.b("Manager", var2.getManager());
      var1.b("Company", var2.getCompany());
      if (var2.getPages() > 0) {
         var1.b("Pages", zase.y(var2.getPages()));
      }

      if (var2.getWords() > 0) {
         var1.b("Words", zase.y(var2.getWords()));
      }

      if (var2.getCharacters() > 0) {
         var1.b("Characters", zase.y(var2.getCharacters()));
      }

      if (var2.getLines() > 0) {
         var1.b("Lines", zase.y(var2.getLines()));
      }

      if (var2.getParagraphs() > 0) {
         var1.b("Paragraphs", zase.y(var2.getParagraphs()));
      }

      if (var2.getTotalEditingTime() > 0.0D) {
         var1.b("TotalTime", zase.y((int)(var2.getTotalEditingTime() * 60.0D)));
      }

      if (var2.getCharactersWithSpaces() > 0) {
         var1.b("CharactersWithSpaces", zase.y(var2.getCharactersWithSpaces()));
      }

      if (var2.contains("HyperlinkBase") && !"".equals(var2.getHyperlinkBase())) {
         var1.b("HyperlinkBase", var2.getHyperlinkBase());
      }

      var1.b();
      var1.d();
      var1.e();
   }
}
